#include<iostream>
using namespace std;

struct student
{
    char name[20];
    int age;
    float score;
};

ostream& operator<<(ostream& cout, student& s)
{
    cout << "姓名：" << s.name << endl;
    cout << "年龄：" << s.age << endl;
    cout << "成绩：" << s.score << endl;
    return cout;
}
istream& operator>>(istream& cin , student& s)
{
    cin >> s.name >> s.age >> s.score;
    return cin;
}

int main()
{
    student s1 = {"张三", 18, 90.5};
    cout << s1;
    student s2;
    cin >> s2;
    cout << s2;

    return 0;
}